/**
 * 
 */
package com.huarui.desktop.model;

import org.apache.commons.lang.StringUtils;

/**
 * @author sunpeng
 * 
 */
public class ModuleScriptDesc {

	private String winId;
	private String winTitle;
	private String winIconCls;
	private String winClassName;
	private String tableName;

	public ModuleScriptDesc(){
		
	}
	public ModuleScriptDesc(String tableName) {

		this.tableName = tableName;
	}

	public String getWinId() {
		return winId;
	}

	public void setWinId(String winId) {
		this.winId = winId;
	}

	public String getWinTitle() {
		return winTitle;
	}

	public void setWinTitle(String winTitle) {
		this.winTitle = winTitle;
	}

	public String getWinIconCls() {
		return winIconCls;
	}

	public void setWinIconCls(String winIconCls) {
		this.winIconCls = winIconCls;
	}

	public String getWinClassName() {
		if (StringUtils.isNotBlank(this.winClassName)) {
			return this.winClassName;
		} else {
			String className = "Uec3." + this.tableName.substring(0, 1).toUpperCase() + this.tableName.substring(1) + "Window";
			return className;
		}
	}

	public void setWinClassName(String winClassName) {
		this.winClassName = winClassName;
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

}
